﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TipsBase : MonoBehaviour {
    
    public UnityEngine.UI.Text contentText;

    protected ZUIAnimTools MZuiAnimTools;

    public AnimationCurve animCurve;

    public float showTime = 2f;

    protected virtual void Awake()
    {
        MZuiAnimTools = gameObject.GetComponent<ZUIAnimTools>();
        if (MZuiAnimTools == null) MZuiAnimTools = gameObject.AddComponent<ZUIAnimTools>();
        MZuiAnimTools.InitCurve(animCurve);

        if (contentText == null)
            contentText = GetComponentInChildren<UnityEngine.UI.Text>();
    }
    // Use this for initialization
    void Start () {
		
	}
    public virtual void SetContent(string content)
    {
        contentText.text = content;
    }
    // Update is called once per frame
    void Update () {
		
	}
}
